// 以下文件格式为描述路由的协议格式
// 你可以调整 routerConfig 里的内容
// 变量名 routerConfig 为 iceworks 检测关键字，请不要修改名称
//todo : 仿照menuConfig根据用户类别不同而注册不同的路由

import Dashboard from './pages/Dashboard';
import Settings from './pages/Settings';
import UserLogin from './pages/UserLogin';
import SuperuserEquipmentControl from './pages/SuperuserEquipmentControl';
import SuperuserUserControl from './pages/SuperuserUserControl';
import SuperuserGroupControl from './pages/SuperuserGroupControl';
import WorkingSchedule from './pages/WorkingSchedule';
import DutyShift from './pages/DutyShift';
import InspectionDayTable from './pages/InspectionDayTable';
import InspectionWeekTable from './pages/InspectionWeekTable';
import InspectionHistoryList from './pages/InspectionHistoryList';
import RequestNoteList from './pages/RequestNoteList';
import RequestNote from './pages/RequestNote';
import ApprovalNoteList from './pages/ApprovalNoteList';
import FileShare from './pages/FileShare';

const routerConfig = [
  {
    path: '/user/login',
    component: UserLogin,
  },
  {
    path: '/dashboard',
    component: Dashboard,
  },
  {
    path: '/staff/settings',
    component: Settings,
  },
  {
    path: '/superuser/equipmentControl',
    component: SuperuserEquipmentControl,
  },
  {
    path: '/superuser/userControl',
    component: SuperuserUserControl,
  },
  {
    path: '/superuser/groupControl',
    component: SuperuserGroupControl,
  },
  {
    path: '/control/workingSchedule',
    component: WorkingSchedule,
  },
  {
    path: '/control/duty/dutyShift',
    component: DutyShift,
  },
  {
    path: '/inspection/everyDay/inspectionRecord',
    component: InspectionDayTable,
  },
  {
    path: '/inspection/everyWeek/inspectionRecord',
    component: InspectionWeekTable,
  },
  {
    path: '/staff/inspection/list',
    component: InspectionHistoryList,
  },
  {
    path: '/staff/requestNoteList',
    component: RequestNoteList,
  },
  {
    path: '/staff/requestNote',
    component: RequestNote,
  },
  {
    path: '/approver/approvalList',
    component: ApprovalNoteList,
  },
  {
    path: '/staff/fileShare',
    component: FileShare,
  }
];

export default routerConfig;
